:root {
	/* --background: #202020; */
	--background: #1c1b22;
	--foreground: ghostwhite;

	--sidebar-border: 2px;
	--page-border: 2px;

	/* link colors */
	--link: turquoise;
	--visited: thistle;
	--hover: paleturquoise;
	--active: var(--hover);
}

.footer {
	justify-content: center;
	align-items: center;
	display: flex;
	flex-direction: row;
	max-width: 100%;
	flex-wrap: wrap;
	white-space: nowrap;
}

.footer * {
	padding: 0% .5%;
}

img {
	/* Thanks to Vargr on Stack Overflow for this CSS to prevent image anti-aliasing. */
	/* Generic */
	image-rendering: optimizeSpeed;

	/* Firefox */
	/* image-rendering: -moz-crisp-edges; */

	/* Opera */
	/* image-rendering: -o-crisp-edges; */

	/* Webkit (Chrome, Safari) */
	/* image-rendering: -webkit-optimize-contrast; */

	/* Universal support since 2021 */
	/* image-rendering: pixelated; */

	/* CSS3 proposed */
	/* image-rendering: optimize-contrast; */

	/* IE8+ */
	-ms-interpolation-mode: nearest-neighbor;
}

.root-layout {
	display: flex;
	flex-direction: column;

	/* width */
	width: 100%;
	min-width: 100%;
	max-width: 100%;

	/* height */
	height: 100%;
	min-height: 100%;
	max-height: 100%;
}

.main-layout {
	display: flex;
	flex-direction: row;

	/* height */
	min-height: 100%;
	max-height: 100%;
	height: 100%;

	/* width */
	max-width: 100%;

	/* padding */
	padding: 1%;
}

.header {
	border-bottom: 4px solid var(--foreground);
	/* display: flex; */
	/* vertical */
	align-items: center;
	/* horizontal */
	justify-content: center;
	align-text: center;
}

.title, .subtitle { text-align: center; }
.subtitle { font-style: italic; }

tt {
	background-color: #101010;
}

body {
	/* padding: 16px; */
	background-color: var(--background);
	color: var(--foreground);
	min-width: 400px;
}

.sidebar {
	justify-content: left;
	display: flex;

	/* width */
	min-width: 20%;
	max-width: 20%;

	/* height */
	min-height: 100%;
	max-height: 100%;

	/* border */
	border: var(--sidebar-border) solid var(--foreground);
}

.vertical-nav {
	width: 100%;
	ul {
		list-style-type: none;
		margin: 0;
		padding: 0;
		max-width: 100%;
		width: 100%;
		background-color: var(--background);
	}
	li a {
		display: block;
		padding: 1% 2%;
		/* disable link underlines here */
		text-decoration: none;
	}
	li a:hover { background-color: #303030; }
}

.page {
	border: var(--page-border) solid var(--foreground);

	/* width */
	max-width: 100%;
	width: 100%;

	/* height */
	max-height: 100%;

	/* margins */
	margin-left: 1%;

	/* padding */
	padding: 1%;
}

/* .navlink { */
	/* margin: 0% 2% 0%; */
/* } */

a:link { color: var(--link); }
a:visited { color: var(--visited); }
a:hover { color: var(--hover); }
a:active { color: var(--active); }
